package com.hao.tool.web;

import com.hao.tool.common.util.SystemPropertyUtil;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(value = "com.hao.tool")
public class ToolApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SystemPropertyUtil.argsToSystemProperty(args);
        SpringApplication application = new SpringApplication(ToolApplication.class);
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);
    }
}
